package com.secxiot.provider.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@ApiModel
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@Data
public class AppSchedulVo implements Serializable {

    @ApiModelProperty(value = "排班ID", required = true)
    private Long schedulId;

    @ApiModelProperty(value = "医院ID", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "部门ID", required = true)
    private Long deptId;

    @ApiModelProperty(value = "开始时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "状态", required = false)
    private Integer status;

    @ApiModelProperty(value = "创建人", required = false)
    private Long createUser;

    @ApiModelProperty(value = "创建时间", required = false)
    private Date createTime;

    @ApiModelProperty(value = "排班记录列表", required = false)
    private Map<Long, List<AppSchedulRecordVo>> schedulRecordVoMap;
}